{include file=about.header.html}
<DIV class="content_bg">
<div class="ABanner" style="background:url({$adver_list.ad_img}) no-repeat top center;"></div>
<div class="ContentAbout">
 <div class="ContentLeft">
  <div class="Lefttop"></div>
  <div class="Leftbody">
  <div class="L2">
   {include file=kd_order.yundanhaobox.html}
  </div>    
  <div class="Lbo"></div>
  </div>
 </div>
 <div class="ContentRight">
 <div class="padding">
   <div class="location"><img src="{res file=images/about/about_content_home.gif}" /> 当前位置：<!--{foreach from=$_curlocal item=lnk name=v}--><!--{if $lnk.url}--><a href="{$lnk.url}">{$lnk.text|escape}</a><!--{if !$smarty.foreach.v.last}-->&nbsp;&gt;&nbsp;{/if}<!--{else}-->{$lnk.text|escape}<!--{/if}--><!--{/foreach}--></div>
   <div class="Atext" style="padding-top:15px">
   <div class="text_title"><img src="{res file=images/about/wuliu_iocn.jpg}" align="absmiddle" /> 有时需要查询第三方快递公司的物流状态，因此查询较慢，请耐心等待或可以<a href="{url app=kd_order}?ydh={$get_ydh}&lx=lcj"><strong>使用百度查询</strong></a>。</div>
  <!--{foreach from=$yundan_list item=list key=key}-->
  <table class="table_wuliu table-hover">
    <thead>
        <tr><th colspan="2" align="left"><img src="{res file=images/about/wuliu_iocn.gif}" align="absmiddle" /> {$list.yundanhao}</th></tr>
    </thead>
    <tbody>
      <!--{if $list.wuliu}-->
      <!--{foreach from=$list.wuliu item=list_second}-->
      <tr class="odd">
        <td align="center" valign="middle" width="170">{$list_second.addtime|date:complete}</td>
        <td align="left" valign="middle">{$list_second.yudan_text}</td>
      </tr>
      <!--{/foreach}-->
      <!--{else}-->
      <tr class="odd">
        <td align="center" valign="middle" width="170">{$list.addtime|date:complete}</td>
        <td align="left" valign="middle">暂无物流信息</td>
      </tr>          
      <!--{/if}-->
      <!--{if $list.expressNo}-->
      <tr class="odd" id="query_{$key}">
        <td align="center" valign="top" width="170" style="line-height:20px"><strong>{$list.express}</strong><br />{$list.expressNo}<br /><p style="padding:15px 0 8px 0">物流情况:</p></td>
        <td align="left" valign="top">
        <!--{if $smarty.get.lx eq 'lcj'}-->
        由于查询不到快递信息或查询太慢，已使用百度查询：<br>
        <iframe src="http://www.baidu.com/baidu?word={$list.express} {$list.expressNo}" width="100%" height="543" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
        <!--{else}-->
        <div id="wuliujiekou{$key}"><font color="#FF0000">请稍等，获取物流中...</font></div>
		<script type="text/javascript">
		$.get("data/jiekou/interface.php",{ "call": "yundan","express": "中通快递", "content": "{$list.expressNo}"},function (result){ 
		if(result.status=='OK'){
			var objson = eval("("+ result['result'] +")");
			if(typeof(objson['traces'])=='undefined'){
				$("#query_{$key}").hide();
			}else{
			    $("#wuliujiekou{$key}").html("");
				$.each(objson['traces'],function(k){
				  if(objson['traces'][k]['acceptTime']=="" && objson['traces'][k]['remark']==""){
					  $("#query_{$key}").hide();
				  }
				  $("#wuliujiekou{$key}").append('<li><p>'+objson['traces'][k]['acceptTime']+'</p>'+objson['traces'][k]['remark']+'</li>'); 
				}); 
			}
		}
		},"json");        
        </script>
        <!--{/if}-->
        </td>
      </tr>  
      <!--{/if}-->  
    </tbody>
  </table>
  <!--{if $count_yudan.substr_count}--><div class="text_title">» 查询到 <strong>{$count_yudan.count|dafault:0}</strong> 个单号(共查{$count_yudan.substr_count|dafault:0}个)，如果以上某个单号没显示，可能是单号错误或者过滤只显示20条记录！</div><!--{/if}-->
  <!-- {foreachelse} -->
  <div style="border:1px dashed #ddd;padding:10px 0; margin:10px auto;width:100%; text-indent:15px;font-size:16px;color:#ed5736;">非常抱歉，您的查询的单号无记录!</div>
  <!-- {/foreach} -->
  
<script type="text/javascript"> 
$(document).ready(function(){
  $(".list:odd").css("background-color","#fafafa");
});
</script>
   </div>
  </div>
 </div>
 <div class="clear"></div>
 </div>
</div>
{include file=footer_jiandan.html}